/**
 * Created by malingling on 15-12-17.
 */
var app = angular.module('orderMasterApp',['ngRoute'])
    app.config(function($routeProvider){
        $routeProvider
            .when('/',{
                templateUrl: '../html/order.html',
                controller: 'OrderCtrl'
            })
            .when('/menu',{
                templateUrl: '../html/choose_menu.html',
                controller: 'ChooseMenuCtrl'
            })
            .when('/people',{
                templateUrl: '../html/choose_people.html',
                controller: 'ChoosePeopleCtrl'
            })
            .when('/restaurant',{
                templateUrl: '../html/choose_restaurant.html',
                controller: 'RestaurantCtrl'
            })
            .when('/combo',{
                templateUrl: '../html/choose_combo.html',
                controller: 'ChooseComboCtrl'
            })
            .when('/detail',{
                templateUrl: '../html/detail.html',
                controller: 'DetailCtrl'
            })
    })